package vashion.azeroth.api.controller.task;

import org.springframework.beans.factory.annotation.Autowired;

import vashion.azeroth.core.personal.tran.pojo.PersonalDisburse;
import vashion.azeroth.core.service.tran.PersonalDisburseService;

/**
 * 24小时关闭未接单订单
 * 
 * @author bao.jin
 *
 */
public class OrderCloseController {
	
	private Boolean isOpen;
	
	@Autowired
	private PersonalDisburseService<PersonalDisburse> disburseService;

	public void closeOrder() {
		if(isOpen) {
			disburseService.closeOrder();
		}
	}

	public Boolean getIsOpen() {
		return isOpen;
	}

	public void setIsOpen(Boolean isOpen) {
		this.isOpen = isOpen;
	}

}
